public class student {
public static void main(String[] args) {
long id;
id = 230721501;//学号 2323730119
System. out. println(id);
String Name;//姓名 方顺
char Gender;//性别 男: '1';女:'0';
Name ="方顺";
Gender = '1';
if(Gender=='1'){
System. out. println("欢迎"+Name+"先生");
}else{
System. out. println("欢迎"+Name+"女士");
}
double score; //分数 96.5
char Grade; // A B C D E
score = 98;
if(score>=90){
Grade='A';
}else if(score>=80){
Grade='B';
}else if(score>=70){
Grade='C';
}else if(score>=60){
Grade='D';
}else{
Grade='E';
}
switch (Grade) {
case 'A':
System. out. println("您的考试成绩为: 完美"); 
break;
case 'B':
System. out. println("您的考试成绩为: 优秀"); 
break;
case 'C':
System. out. println("您的考试成绩为: 良好"); 
break;
case 'D':
System. out. println("您的考试成绩为: 及格"); 
break;
default:
System.out.println("您的考试成绩为：不及格");
break;
}
}
}



